// 封装token 本地存储 和取token
const key = 'hmttUser'

// 设置 token 本地存储
export const setToken = token => localStorage.setItem(key, token)

// 取出 token
export const getToken = () => localStorage.getItem(key)

// 删除 token
export const removeToken = () => localStorage.removeItem(key)
